
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<f:view>
    <link href="/general/css/admin_2.css" rel="stylesheet" type="text/css"/>

    <script language="JavaScript" type="text/javascript">
        var sw = 0;
        function A(){
            var objetoSPAN = document.getElementById('ver');
            if (sw == 0) {
                parent.document.getElementById('aqui').cols = "0,*";
                parent.document.getElementById('here').rows = "0,25,*";
                objetoSPAN.innerHTML = "Mostrar";
                document.getElementById("ver").title = "Mostrar Menus de opciones y navegacion";
                sw = 1;
            } else if (sw == 1) {
                parent.document.getElementById('aqui').cols = "198,*";
                parent.document.getElementById('here').rows = "30,25,*";
                objetoSPAN.innerHTML = "Ocultar";
                document.getElementById("ver").title = "Ocultar Menus de opciones y navegacion";
                sw = 0;
            }
        }

        function actualiza_frames(ruta) {
            window.parent.frames[5].location=ruta;
            window.status=ruta;
            //window.parent.frames[5].window.status = ruta;
            //window.parent.frame.location=ruta;

        }
    </script>

    <center>
        <h:form target="_top">

            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tablaprincipal">
                <tr>
                    <td align="center">
                        <h:outputLabel value="Intranet"/>
                    </td>
                </tr>
            </table>

            <table width="100%" border="0" cellpadding="3" cellspacing="3" class="tablanormal">
                <tr>
                    <td width="30%" align="right"><h:outputLabel value="Usuario" styleClass="etiquetas"/></td>
                    <td width="70%"><h:inputText autocomplete="off" value="#{UsuarioWebController.usuarioWeb.uweCuenta}" size="20" maxlength="20"/></td>
                </tr>
                <tr>
                    <td align="right"><h:outputLabel value="Clave" styleClass="etiquetas"/></td>
                    <td><h:inputSecret autocomplete="off" value="#{UsuarioWebController.usuarioWeb.uweClave}" size="20" maxlength="20"/></td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <span id="ver">
                        <h:commandButton title="Ingresar" value="Ingresar" action="#{UsuarioWebController.ingresarIntranet}" onclick="javascript:A();"/>
                        </span>
                        &nbsp;<h:commandButton title="Cancelar" value="Cancelar" type="reset"/>
                    </td>
                </tr>
                
            </table>

        </h:form>
    </center>
</f:view>
